package pojo;

import annotation.fields;
import annotation.table;

@table(value = "comments")
public class Comments {
    @fields(colounmName = "cid")
    private Integer cid;
    @fields(colounmName = "uid")
    private Integer uid;
    @fields(colounmName = "nid")
    private Integer nid;
    @fields(colounmName = "comment")
    private String comment;
    @fields(colounmName = "usename")
    private String usename;
    @fields(colounmName = "parent")
    private Integer parent;

    public Integer getParent() {
        return parent;
    }

    public void setParent(Integer parent) {
        this.parent = parent;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public String getUsename() {
        return usename;
    }

    public void setUsename(String usename) {
        this.usename = usename;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getNid() {
        return nid;
    }

    public void setNid(Integer nid) {
        this.nid = nid;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Comments() {
    }

    public Comments(Integer uid, Integer nid, String comment, String usename, Integer cid, Integer parent) {
        this.uid = uid;
        this.nid = nid;
        this.comment = comment;
        this.usename = usename;
        this.cid = cid;
        this.parent = parent;
    }

    @Override
    public String toString() {
        return "Comments{" +
                "uid=" + uid +
                ", nid=" + nid +
                ", comment='" + comment + '\'' +
                ", usename='" + usename + '\'' +
                ", cid=" + cid +
                ", parent=" + parent +
                '}';
    }

}
